From 64de62a14e7b37650d86c2108f1076b066bb43a5 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 29 Jul 2010 15:56:13 +0100 Subject: [PATCH] Subject: xl: log unknown domain shutdown reason and default to destroy Signed-off-by: Ian Campbell Acked-by: Christoph Egger Committed-by: Ian Jackson --- tools/libxl/xl_cmdimpl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index f7cf5a4b7d..6a1ae0a612 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -1113,6 +1113,9 @@ static int handle_domain_death(libxl_ctx *ctx, uint32_t domid, libxl_event *even case SHUTDOWN_watchdog: action = d_config->on_watchdog; break; + default: + LOG("Unknown shutdown reason code %s. Destroying domain.", info->shutdown_reason); + action = ACTION_DESTROY; } LOG("Action for shutdown reason code %d is %s", info->shutdown_reason, action_on_shutdown_names[action]); -- 2.30.2